package model;

import java.sql.Timestamp;

public class Essay {
    private int eid;
    private int uid;
    private String auther;
    private String title;
    private String eclass;
    private Timestamp create_time;
    private Timestamp update_time;
    private String content;
    private int read_sum;
    private int zan_sum;

    public String getAuther() {

        return auther;
    }

    public void setAuther(String auther) {
        this.auther = auther;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getEid() {
        return eid;
    }

    public void setEid(int eid) {
        this.eid = eid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getEclass() {
        return eclass;
    }

    public void setEclass(String eclass) {
        this.eclass = eclass;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public Timestamp getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Timestamp update_time) {
        this.update_time = update_time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getRead_sum() {
        return read_sum;
    }

    public void setRead_sum(int read_sum) {
        this.read_sum = read_sum;
    }

    public int getZan_sum() {
        return zan_sum;
    }

    public void setZan_sum(int zan_sum) {
        this.zan_sum = zan_sum;
    }

    @Override
    public String toString() {
        return "Essay{" +
                "eid=" + eid +
                ", uid=" + uid +
                ", auther='" + auther + '\'' +
                ", title='" + title + '\'' +
                ", eclass='" + eclass + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", content='" + content + '\'' +
                ", read_sum=" + read_sum +
                ", zan_sum=" + zan_sum +
                '}';
    }
}
